package goroutinePool

type Task struct {
	id int
	do func() error
}

func NewTask(f func() error, id int) *Task {
	return &Task{
		do: f,
		id: id,
	}
}

func (t *Task) Excute() {
	t.do()
}
